<extend name='layout:index'/>
<block name='content'>


<body>
<div class="container">
<div class="col-sm-12">
<div style="height: 50px">
</div>
<div class="ibox-content">

            <form role="form" class="form-inline" action="__URL__/register" method="get" name="theForm" id="theForm">
                <div class="form-group" style='margin-left:15px'>
                    <label for="" class="" >开始时间：</label>
                    <input placeholder="请输入开始时间" name="start" id="start" class="form-control" type="text">

                </div>
                <div class="form-group" style='margin-left:15px'>
                    <label for="" class="">结束时间</label>
                    <input placeholder="请输入结束时间" name="end" id="end" class="form-control" type="text">
                </div>
                <div class="form-group" style='margin-left:135px'>
               
                    <select class="selectpicker show-tick form-control" style='width:300px' name="jtype" >
                            <option value="1">全部明细</option>
                            <option value="5">激活会员</option>
                            
                            <option value="50">注册积分转出</option>
                            <option value="49">注册积分转入</option>
                            <option value="51">现金积分转注册积分</option>
                    </select>
                  
                </div>
                <input type="submit" style='width:70px;height:32px;margin-left:15px' value='搜索'>
            </form>
        </div>
<div>

<div class="table-responsive">
<table class="table table-bordered table-striped table-hover">
	<thead>
		<tr>
			<th>事件名称</th>
			<th>详细说明</th>
			<th>金额($)</th>
			<th>时间</th>
		</tr>
	</thead>
	<foreach name='register' item='vo'>
		<tr> 
		<td><if condition="$vo.change_type eq 51" >
		现金积分转注册积分
		<elseif condition='$vo.change_type eq 50' />
		注册积分转出
		<elseif condition='$vo.change_type eq 49' />
		注册积分转入
		<elseif condition='$vo.change_type eq 70' />
		会员升级
		<elseif condition='$vo.change_type eq 5' />
		激活会员
		<elseif condition='$vo.change_type eq 0' />
		注册积分充值
		</if>
		</td>
		<td>{$vo.change_desc}</td>
		<td>{$vo.user_money2}</td>
		<td><?php echo date('Y-m-d H:i:s',$vo['change_time'] ) ?></td>
	</tr>
	</foreach>
		
	
</tbody>
</table>

</div>

</form>
				<div style='float:right;margin-right:50px' >{$url}</div>
</div>
</div>
</div>
</div>

<script src="__PUBLIC__/home/js/plugins/layer/laydate/laydate.js"></script>
<script>
	laydate.skin('molv');
laydate({
  elem: '#start', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
});

laydate({
  elem: '#end', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
  event: 'focus' //响应事件。如果没有传入event，则按照默认的click
});

function gettype(obj){
  var id = obj.value;
  location.href="rp_user.php?act=zcjfmx&typeid="+id;
}
</script>
</body>
</block>